package greendbgui

class Person {

	static mapping = 
	{
		columns 
		{
			firstNames column:'first_names'
			birthday18 column:'bday_18'
		}
		version false
	}

	static hasMany = [electoralRollEntry:ElectoralRollEntry, 
	                  contact:Contact,
					  votingInfo:VotingInfo]
					
    static constraints = {
    }

    String surname
    String firstNames
    Date birthday18

  	String toString()
	{
    	return surname + ", " + firstNames
  	}
}
